﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="CNVP.JShop.Web.Admin.OrderList" %>
<%@ Import NameSpace="System.Data"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
     <title><%=CNVP.Config.UIConfig.SiteName%></title>
    <!--#include file="include/basejs.aspx"-->
    <script src="Common/Option.js" type="text/javascript"></script>
    <script src="JS/Calendar.js" type="text/javascript"></script>
</head>
<body  onload="ActiveCoolTable()">
    <form id="form2" runat="server">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
        <td class="cell_group">
            <img src="Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="OrderList.aspx">订单管理</a>
        </td>
    </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" cellspacing="0" cellpadding="0" class="Option">
  <tr>
    <td><img src="Images/Dot05.png" />&nbsp;<a href="OrderAdd.aspx">添加</a></td>
    <td><img src="Images/Dot08.png" /> 
        <asp:LinkButton ID="btDelete" runat="server" onclick="btDelete_Click">取消</asp:LinkButton></td>
    <td><asp:Label ID="OLb" runat="server"></asp:Label></td>
  </tr>
</table>
</td>
    <td align="right">
        <a href="javascript:void(0);" onclick="showQueDetail(true);" class="link_quedetail">高级检索</a>
        <div id="div_quedetail" class="HighSearch">
          <table width="100%" align="center" cellspacing="0" cellpadding="0"  class="EditTable" >
                <tr>
                    <td colspan="2" align="right"><img src="images/ListClose.gif" onclick="showQueDetail(false);" style="cursor:pointer" title="关闭检索" alt="" /></td>
                </tr>
                <tr>
                    <td class="EditTitle">关 键 字：</td>
                    <td align="left"><asp:TextBox ID="txtkey" runat="server" Width="160px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="EditTitle">订单状态：</td>
                    <td align="left">
                        <asp:DropDownList id="ddlOrderState" runat="server" Width="160px">
									<asp:ListItem Value="-1">所有订单</asp:ListItem>
									<asp:ListItem Value="0">等待付款</asp:ListItem>
									<asp:ListItem Value="1">准备发货(到付或已付)</asp:ListItem>
									<asp:ListItem Value="2">配送中</asp:ListItem>
									<asp:ListItem Value="3">无货订单</asp:ListItem>
									<asp:ListItem Value="4">确认收货</asp:ListItem>
									<asp:ListItem Value="5">付款成功</asp:ListItem>
                                    <asp:ListItem Value="7">已结算</asp:ListItem>
									<asp:ListItem Value="8">退货单</asp:ListItem>
									<asp:ListItem Value="9">取消单</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="EditTitle">开始时间：</td>
                    <td align="left">
                        <input name="BeginDate" type="text" id="BeginDate" onclick="calendar.show(this);" size="28" maxlength="10" readonly="readonly" /></td>
                </tr>
                <tr>
                    <td class="EditTitle">结束时间：</td>
                    <td align="left">
                        <input name="EndDate" type="text" id="EndDate" onclick="calendar.show(this);" size="28" maxlength="10" readonly="readonly" /></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                            <div class="EditBtn">
                                <asp:Button ID="btHighSearch" runat="server" Text="检 索" onclick="btHighSearch_Click" />
                                <input type="button" value="关 闭" class="list_search_btn" onclick="showQueDetail(false);"/>
                             </div>   
                            </td>
                </tr>
                </table>
      </div>
    </td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td>
       <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
        <asp:Repeater ID="rpList" runat="server" onitemcommand="rpList_ItemCommand" 
            onitemdatabound="rpList_ItemDataBound">
                <HeaderTemplate>
                    <thead>
                            <tr>
                            <th class="CheckBox" ><input onclick="checkAllLine()" id="checkedAll" name="checkedAll" type="checkbox" title="全部选择/全部不选" /></th>
                            <th>订单号</th>
                            <th>下单时间</th>
                            <th>订单总额</th>
                            <th>收货人</th>
                            <th>订单状态</th>
                            <th>会员用户</th>
                            <th >操作</th>
                          </tr>
                        </thead>
                         <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td class="CheckBox"><asp:CheckBox id="cbCheck" runat="server" ToolTip='<%#Eval("ID")%>'></asp:CheckBox>
                             </td>
                        <td>
                            <asp:HyperLink ID="HLinkoOrderNum" runat="server"><%#((DataRowView)Container.DataItem)["oOrderNum"]%></asp:HyperLink>
                        </td>
                        <td><%#((DataRowView)Container.DataItem)["oAddTime"]%></td>
                        <td><%#((DataRowView)Container.DataItem)["OrderTotalAmount"]%></td>
                        <td><%#((DataRowView)Container.DataItem)["GetTrueName"]%></td>
                        <td>
                           <a href='OrderShow.aspx?olbid=<%=olbid %>&Page=<%=PageIndex %>&id=<%#Eval("ID")%>'> <%#((DataRowView)Container.DataItem)["oOrderState"]%></a>
                            <asp:Label ID="lbOrderStateNO" runat="server" Text='<%#((DataRowView)Container.DataItem)["oOrderStateNO"]%>' CssClass="Display"></asp:Label>
                        </td>
                        <td><%#((DataRowView)Container.DataItem)["oBuyerID"]%></td>
                        <td>
                            <asp:LinkButton ID="link1" runat="server" CommandName="link1" CommandArgument='<%#((DataRowView)Container.DataItem)["ID"]%>'>购</asp:LinkButton>
                            <asp:LinkButton ID="link2" runat="server" CommandName="link2" CommandArgument='<%#((DataRowView)Container.DataItem)["ID"]%>'>配</asp:LinkButton>
                            <asp:LinkButton ID="link3" runat="server" CommandName="link3" CommandArgument='<%#((DataRowView)Container.DataItem)["ID"]%>'>合</asp:LinkButton>
                            <asp:LinkButton ID="link4" runat="server" CommandName="link4" CommandArgument='<%#((DataRowView)Container.DataItem)["ID"]%>'>递</asp:LinkButton>
                         </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                 <asp:Literal ID="lblEmpty" Text="<tr><td colspan='8'>没有符合条件的条目!</td></tr>" runat="server" Visible='<%#bool.Parse((rpList.Items.Count==0).ToString())%>'></asp:Literal>
                     </tbody>
                </FooterTemplate>
        </asp:Repeater>
                    <tfoot>
                    <tr><td colspan="10"><div id="paging" runat="server"></div></td></tr>
                    </tfoot>
                </table>
            </td>
          </tr>
        </table>
    </form>
</body>
</html>
